const commonObject = {
	//组装分页
	paginationFunction:function(obj){
		let paginationObject = {};
		paginationObject.currentPage = obj.pageIndex; // 第几页
		paginationObject.pageSize = obj.pageSize; //  每页数量
		paginationObject.pageTotal = obj.pageTotal; // 页总数
		paginationObject.total = obj.total; //总数
		//num1
		paginationObject.num1 = (obj.pageIndex-1)*obj.pageSize+1;
		//num2
		if(obj.pageTotal == obj.pageIndex){
			paginationObject.num2 = obj.total;
		}else{
			paginationObject.num2 = obj.pageIndex*obj.pageSize;
		}
		return paginationObject
	}
}

export default commonObject
